{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "class myItem():\n",
    "    def __init__(self,pid,pname,price,productURL,stock,proPic,description,updateTime):\n",
    "        self.pid=pid  #编号\n",
    "        self.pname=pname  #商品名称\n",
    "        self.price=price  #价格\n",
    "        self.productURL=productURL  #商品网址\n",
    "        self.stock=stock  #库存\n",
    "        self.proPic=proPic  #商品图片\n",
    "        self.description=description  #描述\n",
    "        self.updateTime=updateTime  #时间\n",
    "    \n",
    "    def getPid(self): \n",
    "        return self.pid;\n",
    "        \n",
    "    def getPname(self): \n",
    "        return self.pname;\n",
    "    def setPname(self,pname):\n",
    "        self.pname=pname\n",
    "        \n",
    "    def getPrice(self): \n",
    "        return self.price;\n",
    "    def setPrice(self,price):\n",
    "        self.price=price\n",
    "        \n",
    "    def getProductURL(self): \n",
    "        return self.productURL;\n",
    "    def setProductURL(self,productURL):\n",
    "        self.productURL=productURL\n",
    "        \n",
    "    def getStock(self): \n",
    "        return self.stock;\n",
    "    def setStock(self,stock):\n",
    "        self.stock=stock\n",
    "        \n",
    "    def getProPic(self): \n",
    "        return self.proPic;\n",
    "    def setProPic(self,proPic):\n",
    "        self.proPic=proPic\n",
    "        \n",
    "    def getDescription(self): \n",
    "        return self.description;\n",
    "    def setDescription(self,description):\n",
    "        self.description=description\n",
    "        \n",
    "    def getUpdateTime(self): \n",
    "        return self.updateTime;\n",
    "    def setUpdateTime(self,updateTime):\n",
    "        self.updateTime=updateTime"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
